package com.industry.system.convert;

import com.industry.system.controller.vo.MenuRespVO;
import com.industry.system.controller.vo.RoleVo;
import com.industry.system.dal.dataobject.SystemMenu;
import com.industry.system.dal.dataobject.SystemRole;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author nbZhuozh
 * @Date 2025-02-13  21:09
 **/
@Mapper
public interface SystemRoleConvert {

    SystemRoleConvert INSTANCE = Mappers.getMapper(SystemRoleConvert.class);

    RoleVo convert(SystemRole systemRole);

    List<RoleVo> convertList(List<SystemRole> roleList);

}
